package homework.Access_Restriction;

public class Demo extends book{
    public static void main(String[] args) {
        book book = new book();
        book.setBookId(1);
        book.setBookName("射雕侠侣");
        book.setPrice(32.0);
        book.setTotal(35941);
        System.out.printf("图书编号：%d\n",book.getBookId());
        System.out.printf("图书名称：%s\n",book.getBookName());
        System.out.printf("图书单价：%.2f\n",book.getPrice());
        System.out.printf("图书库存：%d",book.getTotal());
    }

}
